package com.hins.demo.order;

import com.hins.component.dto.MultiResponse;
import com.hins.component.dto.Response;
import com.hins.demo.api.CheckoutServiceI;
import com.hins.demo.dto.CheckoutCmd;
import com.hins.demo.dto.OrderListQry;
import com.hins.demo.dto.data.OrderDTO;
import com.hins.demo.order.executor.CheckoutCmdExe;

import javax.annotation.Resource;
import javax.validation.Valid;

/**
 * Description: 下单
 *
 * @author wenjiaqi
 * @date 2021/6/18 16:11
 */
public class CheckoutServiceImpl implements CheckoutServiceI {

    @Resource
    private CheckoutCmdExe checkoutCmdExe;

    @Override
    public Response checkout(CheckoutCmd cmd) {
        return checkoutCmdExe.execute(cmd);
    }

    @Override
    public MultiResponse<OrderDTO> listOrderBy(OrderListQry qry) {
        return null;
    }
}
